package org.chen.org.domain;


import org.chen.bas.domain.BasDomain;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author chen
 * @since 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Employee extends BasDomain {

    private static final long serialVersionUID = 1L;
    /**
     * 待激活
     **/
    public static final int STATE_WAIT_AUDIT = -1; //"待激活",
    /**
     * 正常
     **/
    public static final int STATE_NORMAL = 1; //"正常",
    /**
     * 锁定
     **/
    public static final int STATE_LOCK = 2; //"锁定",
    /**
     * 注销
     **/
    public static final int STATE_LOGOUT = 3; //"注销"

    private Long id;
    private String username;
    /**
     * 真实姓名
     */
    private String realName;
    private String email;
    private String phone;
    /**
     * 盐值
     */
    private String salt;
    /**
     * 密码要加密保存
     */
    private String password;
    private Integer age;
    private Integer sex;
    /**
     * 1=正常 2=锁定 3=注销
     */
    private Integer state;
    private Long departmentId;
    private Long logininfoId;
    private String confirmPassword;

}